package com.ryoma.service.impl;

import com.ryoma.mapper.development.DepartmentMapper;
import com.ryoma.model.Department;
import com.ryoma.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "departmentService")
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    DepartmentMapper departmentMapper;

    @Override
    public List<Department> queryDepartmentList(Department department) {
        return departmentMapper.queryDepartmentList(department);
    }

    @Override
    public void insert(Department department) {
        departmentMapper.insert(department);
    }

    @Override
    public void update(Department department) {

    }
}
